package interfaces.menu.joinGame.filters;

import interfaces.menu.joinGame.gamesTable.GamesTableWidget;
import interfaces.options.ComboBoxOptionWidget;

public class FriendlyFireFilter extends TripleFilter {
	
	public FriendlyFireFilter(ComboBoxOptionWidget filterWidget) {
		super(filterWidget);
	}
	
	@Override
	protected boolean filterDontShow(GamesTableWidget widget) {
		return !widget.hasFriendlyFire();
	}
	
	@Override
	protected boolean filterShowOnly(GamesTableWidget widget) {
		return widget.hasFriendlyFire();
	}
}